package gov.pr.celepar.sentinela.client.digester;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;

public class Atributos {
	private List<Atributo> atributos = new ArrayList<Atributo>();

	public void addAtributo(Atributo atributo) {
		this.atributos.add(atributo);
	}

	public List<Atributo> getAtributos() {
		return this.atributos;
	}

	public String toString() {
		return new ToStringBuilder(this).append("atributos", getAtributos())
				.toString();
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if (!(other instanceof Atributos))
			return false;
		return super.equals(other);
	}

}